package com.hopes.bizz.stop.common.service;

import com.hopes.bizz.stop.risk.base.mapper.LinePollFactorInfoMapper;
import com.hopes.bizz.stop.risk.base.mapper.LinePollMonitorSiteMapper;
import com.hopes.boss.admin.api.entity.SysDictItem;
import com.hopes.boss.common.service.TableDictService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 数据表转字典
 * @time 2023/10/18 14:42
 */

@Slf4j
@Service
@RequiredArgsConstructor
public class ParkStopDictServiceImpl implements TableDictService {

    private final LinePollFactorInfoMapper linePollFactorInfoMapper;
    private final LinePollMonitorSiteMapper linePollMonitorSiteMapper;


    public List<SysDictItem> listFactorInfoListAsDict() {
        return linePollFactorInfoMapper.labelValueList();
    }

    public List<SysDictItem> listFactorNameListAsDict() {
        return linePollFactorInfoMapper.listFactorNameListAsDict();
    }

    public List<SysDictItem> listMonitorSiteListAsDict() {
        return linePollMonitorSiteMapper.labelValueList();
    }
}
